<?php //e($javascript->codeBlock('$(document).ready(function() {$("#FeedEditForm").ajaxForm(function() {$(".content").load("/admin/posts");});});'));?>
<?php e($this->renderElement('tinymce'));?>

<div id="feed">
	<?php e($form->create('Feed'));?>
		<fieldset id="feed-edit">
			<legend>Edit Feed:</legend>
		<?php e($form->input('id', array('type'=>'hidden')));?>
		<?php e($form->input('feed_name'));?>
		<?php e($form->input('feed_url'));?>
		<?php if($othAuth->group('name') == "Site Admins") {
				e($form->input('published', array('label'=>'Publish Story?', 'type'=>'checkbox')));
			} else {
				e($form->input('published', array('type'=>'hidden', 'value'=>0)));
			}
		?>
		</fieldset>
		
		<?php e($form->submit('Edit Feed'));?> <?php e($html->link('Cancel', '/admin/feeds', array('class'=>'cancel')));?>
	<?php e($form->end());?>
</div>